<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>{$post_title} {$site_name} </title>
	<tc_include file="Public:head" />
	<style>
		.pad-left{
			padding-right:10px;
		}
		.pad-full{
			padding:10px;
		}
		.pad-right{
			padding-left:10px;
		}
	</style>
</head>
<body class="boxed">
	<div class="body">
		<!-- 通用头部 -->
		<tc_include file="Public:front_nav" />
		<div class="shade-bg">
			<img src="__TMPL__Public/front/img/sha.png" class="slidershadow" alt="">
		</div>
		<div class="container">
			<div class="jumbotron" style="background:url(__TMPL__Public/front/img/secpage/study.png) no-repeat; height:250px; text-align:center">
				
			</div>
			<div>
				<ol class="breadcrumb">
					<li><a href="/">首页</a></li>
					<li class="active">{$name}</li>
				</ol>
			</div>
			<div class="row">
				<div class="col-md-3 pad-left">
					<form id="formSearch" action="{:U('list/index',array('id'=>$cat_id))}" method="post">
						<fieldset>
							<legend >
								<label><i class="glyphicon glyphicon-search"></i>&nbsp;培训资料搜索</label>																	
							</legend>
							<div class="form-group">
								<label class="control-label">资料分类</label>
								<select class="form-control" name="term_id">
								<option value=''>全部</option>
								<volist name=":sp_get_all_child_terms($cat_id)" id="vo">
									<option value="{$vo.term_id}">{$vo.name}</option>
								</volist>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label">关键字</label>
								<div>
									<input id="txtKey" name="key" type="text" class="form-control">
								</div>
							</div>
							<div class="form-group text-center">
								<button type="submit" class="btn btn-primary">查询</button>
							</div>
						</fieldset>
					</form>
					<ul class="nav nav-tabs">
						<li class="active"><a href="#hotbrowsing" data-toggle="tab"><b>热门浏览</b></a></li>
						<li><a href="#hotdownload" data-toggle="tab"><b>热门下载</b></a></li>
					</ul>
					<div class="tab-content" style="padding:10px;">
						<div class="tab-pane fade in active" id="hotbrowsing">
							<ul class="list-unstyled" style="line-height:30px;">
								<php> $lists =
								sp_sql_posts_paged("cid:14,15,16;order:post_hits DESC;",6); </php>
								<volist name="lists['posts']" id="vo">
								<li>
									<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" title="{$vo.post_title}">{$vo.post_title|mb_substr=0,16,utf8}</a>
								</li>
								</volist>								
							</ul>
						</div>
						<div class="tab-pane fade" id="hotdownload">
							<ul class="list-unstyled" style="line-height:30px;">
								<php> $lists =
								sp_sql_posts_paged("cid:14,15,16;order:post_hits DESC;",6); </php>
								<volist name="lists['posts']" id="vo">
								<li>
									<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" title="{$vo.post_title}">{$vo.post_title|mb_substr=0,16,utf8}</a>
								</li>
								</volist>								
							</ul>
						</div>
					</div>
				</div>
				<div class="col-md-9 pad-right">
					<table class="table table-striped table-hover">
						<thead>
							<th>资料名称</th>
							<th>所属工种</th>
							<th>上传时间</th>
						</thead>
						<tbody>
							<php>
								$lists = sp_sql_posts_paged_bycatid(1,null,15);
							</php>
							<volist name="lists['posts']" id="vo">
								<tr>
									<td><a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}">{$vo.post_title}</a></td>
									<td>{:sp_get_term($vo['term_id'])['name']}</td>
									<td>{:date('Y-m-d',strtotime($vo['post_date']))}</td>
								</tr>
							</volist>
						</tbody>
					</table>									
				</div>
			</div>
		</div>
		<!-- 通用底部-->
		<tc_include file="Public:footer"/>
	</div>
	<tc_include file="Public:scripts"/>
</body>
</html>

